package com.lzc.service;

import com.lzc.pojo.vo.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface FileUpLoadService {


    // 浏览器上传头像到服务器
    Result upLoadHeadImg(MultipartFile file);

    // 浏览器获取头像
    void loadHeadImg(String imgName, HttpServletResponse response);

    // 浏览器上传图片到素材库
    Result upLoadImg(MultipartFile[] files);

    // 获取素材库的图片
    void loadImg(String imgName, HttpServletResponse response);

    // 查看文章
    void loadArticle(HttpServletRequest request,HttpServletResponse response);
}
